home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 22 / AMUG_22-4.ISO / Files IV / Prog / T / TinyTools-2.sit / TinyTools / Plunger.h < prev    next >
MacBinary  |  1997-10-07  |  3.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Oct 7 02:55:06 1997, modified Tue Oct 7 02:55:06 1997, creator 'MPS ', type ASCII, 3276 bytes "Plunger.h" , at 0xd4c 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% lsar MacBinary default
100% librempegprobeID NGC (Nintendo DSP Standard) (ngcdspstd) default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 50 6c 75 6e 67 65 | 72 2e 68 00 00 00 00 00 |..Plunge|r.h.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 0c cc 00 | 00 01 ac b0 5f 8d 4a b0 |........|...._.J.|
|00000060| 5f 8d 4a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |_.J.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d4 fb 00 00 |........|........|
|00000080| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 50 4c 55 4e 47 |.#ifndef| __PLUNG|
|00000090| 45 52 5f 5f 0d 23 64 65 | 66 69 6e 65 20 5f 5f 50 |ER__.#de|fine __P|
|000000a0| 4c 55 4e 47 45 52 5f 5f | 0d 0d 2f 2a 20 50 6c 75 |LUNGER__|../* Plu|
|000000b0| 6e 67 65 72 2c 20 72 68 | 79 6d 65 73 20 77 69 74 |nger, rh|ymes wit|
|000000c0| 68 20 4d 75 6e 67 65 72 | 2e 0d 09 47 65 6e 65 72 |h Munger|...Gener|
|000000d0| 61 6c 20 6d 65 6d 6f 72 | 79 20 61 6e 64 20 73 74 |al memor|y and st|
|000000e0| 72 69 6e 67 20 62 75 66 | 66 65 72 20 65 64 69 74 |ring buf|fer edit|
|000000f0| 69 6e 67 20 72 6f 75 74 | 69 6e 65 73 2c 20 69 6e |ing rout|ines, in|
|00000100| 74 65 72 66 61 63 65 2e | 0d 09 43 6f 70 79 72 69 |terface.|..Copyri|
|00000110| 67 68 74 20 28 63 29 20 | 31 39 39 37 20 62 79 20 |ght (c) |1997 by |
|00000120| 4a 6f 68 6e 20 4d 6f 6e | 74 62 72 69 61 6e 64 2e |John Mon|tbriand.|
|00000130| 20 20 41 6c 6c 20 52 69 | 67 68 74 73 20 52 65 73 | All Ri|ghts Res|
|00000140| 65 72 76 65 64 2e 0d 09 | 50 65 72 6d 69 73 73 69 |erved...|Permissi|
|00000150| 6f 6e 20 67 72 61 6e 74 | 65 64 20 66 6f 72 20 70 |on grant|ed for p|
|00000160| 75 62 6c 69 63 20 75 73 | 65 2e 0d 09 44 69 73 74 |ublic us|e...Dist|
|00000170| 72 69 62 75 74 65 20 66 | 72 65 65 6c 79 20 69 6e |ribute f|reely in|
|00000180| 20 61 72 65 61 73 20 77 | 68 65 72 65 20 74 68 65 | areas w|here the|
|00000190| 20 6c 61 77 73 20 6f 66 | 20 63 6f 70 79 72 69 67 | laws of| copyrig|
|000001a0| 68 74 20 61 70 70 6c 79 | 2e 0d 09 55 53 45 20 41 |ht apply|...USE A|
|000001b0| 54 20 59 4f 55 52 20 4f | 57 4e 20 52 49 53 4b 2e |T YOUR O|WN RISK.|
|000001c0| 0d 09 44 4f 20 4e 4f 54 | 20 44 49 53 54 52 49 42 |..DO NOT| DISTRIB|
|000001d0| 55 54 45 20 4d 4f 44 49 | 46 49 45 44 20 43 4f 50 |UTE MODI|FIED COP|
|000001e0| 49 45 53 2e 0d 09 43 6f | 6d 6d 65 6e 74 73 2f 71 |IES...Co|mments/q|
|000001f0| 75 65 73 74 69 6f 6e 73 | 2f 70 6f 73 74 63 61 72 |uestions|/postcar|
|00000200| 64 73 20 74 6f 20 74 68 | 65 20 61 75 74 68 6f 72 |ds to th|e author|
|00000210| 20 61 74 20 74 68 65 20 | 61 64 64 72 65 73 73 3a | at the |address:|
|00000220| 0d 09 09 4a 6f 68 6e 20 | 4d 6f 6e 74 62 72 69 61 |...John |Montbria|
|00000230| 6e 64 0d 09 09 50 2e 4f | 2e 20 42 6f 78 2e 20 31 |nd...P.O|. Box. 1|
|00000240| 31 33 33 0d 09 09 53 61 | 73 6b 61 74 6f 6f 6e 20 |133...Sa|skatoon |
|00000250| 53 61 73 6b 61 74 63 68 | 65 77 61 6e 20 43 61 6e |Saskatch|ewan Can|
|00000260| 61 64 61 0d 09 09 53 37 | 4b 20 33 4e 32 0d 09 6f |ada...S7|K 3N2..o|
|00000270| 72 20 62 79 20 65 6d 61 | 69 6c 20 61 74 3a 0d 09 |r by ema|il at:..|
|00000280| 09 74 69 6e 79 6a 6f 68 | 6e 40 73 6b 2e 73 79 6d |.tinyjoh|n@sk.sym|
|00000290| 70 61 74 69 63 6f 2e 63 | 61 0d 09 49 66 20 79 6f |patico.c|a..If yo|
|000002a0| 75 20 77 6f 75 6c 64 20 | 6c 69 6b 65 20 74 6f 20 |u would |like to |
|000002b0| 68 61 76 65 3a 0d 09 09 | 74 65 63 68 6e 69 63 61 |have:...|technica|
|000002c0| 6c 20 73 75 70 70 6f 72 | 74 20 72 65 67 61 72 64 |l suppor|t regard|
|000002d0| 69 6e 67 20 74 68 69 73 | 20 66 69 6c 65 2c 20 73 |ing this| file, s|
|000002e0| 65 6e 64 20 61 20 70 6f | 73 74 63 61 72 64 2e 0d |end a po|stcard..|
|000002f0| 09 73 65 65 20 61 6c 73 | 6f 3a 0d 09 09 68 74 74 |.see als|o:...htt|
|00000300| 70 3a 2f 2f 77 77 77 33 | 2e 73 6b 2e 73 79 6d 70 |p://www3|.sk.symp|
|00000310| 61 74 69 63 6f 2e 63 61 | 2f 74 69 6e 79 6a 6f 68 |atico.ca|/tinyjoh|
|00000320| 6e 0d 2a 2f 0d 09 0d 23 | 69 6e 63 6c 75 64 65 20 |n.*/...#|include |
|00000330| 3c 54 79 70 65 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |<Types.h|>.#inclu|
|00000340| 64 65 20 3c 53 74 64 41 | 72 67 2e 68 3e 0d 0d 23 |de <StdA|rg.h>..#|
|00000350| 69 66 64 65 66 20 5f 5f | 63 70 6c 75 73 70 6c 75 |ifdef __|cplusplu|
|00000360| 73 0d 65 78 74 65 72 6e | 20 22 43 22 20 7b 20 0d |s.extern| "C" { .|
|00000370| 23 65 6e 64 69 66 0d 0d | 2f 2a 20 66 69 6c 65 20 |#endif..|/* file |
|00000380| 76 65 72 73 69 6f 6e 20 | 2a 2f 0d 23 64 65 66 69 |version |*/.#defi|
|00000390| 6e 65 20 6b 50 6c 75 6e | 67 65 72 56 65 72 73 69 |ne kPlun|gerVersi|
|000003a0| 6f 6e 20 31 0d 0d 2f 2a | 20 6d 65 6d 65 64 69 74 |on 1../*| memedit|
|000003b0| 20 72 65 70 6c 61 63 65 | 73 20 63 6f 75 6e 74 20 | replace|s count |
|000003c0| 62 79 74 65 73 20 61 74 | 20 74 68 65 20 67 69 76 |bytes at| the giv|
|000003d0| 65 6e 20 6f 66 66 73 65 | 74 20 69 6e 20 61 20 62 |en offse|t in a b|
|000003e0| 75 66 66 65 72 20 6f 66 | 20 2a 62 75 66 6c 65 6e |uffer of| *buflen|
|000003f0| 20 62 79 74 65 73 20 77 | 69 74 68 0d 09 6e 65 77 | bytes w|ith..new|
|00000400| 6c 65 6e 20 62 79 74 65 | 73 20 6f 66 20 64 61 74 |len byte|s of dat|
|00000410| 61 20 70 6f 69 6e 74 65 | 64 20 74 6f 20 62 79 20 |a pointe|d to by |
|00000420| 6e 65 77 64 61 74 61 2e | 20 20 2a 62 75 66 6c 65 |newdata.| *bufle|
|00000430| 6e 20 69 73 20 75 70 64 | 61 74 65 64 20 74 6f 20 |n is upd|ated to |
|00000440| 74 68 65 20 73 69 7a 65 | 20 6f 66 20 74 68 65 0d |the size| of the.|
|00000450| 09 6e 65 77 20 62 75 66 | 66 65 72 2e 20 20 69 66 |.new buf|fer. if|
|00000460| 20 6e 65 77 6c 65 6e 20 | 69 73 20 30 2c 20 6e 65 | newlen |is 0, ne|
|00000470| 77 64 61 74 61 20 69 73 | 20 69 67 6e 6f 72 65 64 |wdata is| ignored|
|00000480| 20 61 6e 64 20 63 61 6e | 20 62 65 20 4e 55 4c 4c | and can| be NULL|
|00000490| 2e 20 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 6d 61 |. you s|hould ma|
|000004a0| 6b 65 0d 09 73 75 72 65 | 20 74 68 65 20 62 75 66 |ke..sure| the buf|
|000004b0| 66 65 72 20 70 6f 69 6e | 74 65 64 20 74 6f 20 62 |fer poin|ted to b|
|000004c0| 79 20 62 75 66 66 65 72 | 20 69 73 20 6c 61 72 67 |y buffer| is larg|
|000004d0| 65 20 65 6e 6f 75 67 68 | 20 74 6f 20 61 63 63 6f |e enough| to acco|
|000004e0| 6d 6f 64 61 74 65 20 74 | 68 65 20 72 65 73 75 6c |modate t|he resul|
|000004f0| 74 69 6e 67 0d 09 64 61 | 74 61 2e 20 20 69 66 20 |ting..da|ta. if |
|00000500| 74 68 65 72 65 20 69 73 | 20 61 6e 20 65 72 72 6f |there is| an erro|
|00000510| 72 20 69 6e 20 74 68 65 | 20 70 61 72 61 6d 65 74 |r in the| paramet|
|00000520| 65 72 73 2c 20 4e 55 4c | 4c 20 69 73 20 72 65 74 |ers, NUL|L is ret|
|00000530| 75 72 6e 65 64 2c 20 6f | 74 68 65 72 77 69 73 65 |urned, o|therwise|
|00000540| 0d 09 6d 65 6d 65 64 69 | 74 20 72 65 74 75 72 6e |..memedi|t return|
|00000550| 73 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 62 |s a poin|ter to b|
|00000560| 75 66 66 65 72 2e 20 2a | 2f 0d 76 6f 69 64 2a 20 |uffer. *|/.void* |
|00000570| 6d 65 6d 65 64 69 74 28 | 76 6f 69 64 20 2a 62 75 |memedit(|void *bu|
|00000580| 66 66 65 72 2c 20 6c 6f | 6e 67 20 2a 62 75 66 6c |ffer, lo|ng *bufl|
|00000590| 65 6e 2c 20 63 6f 6e 73 | 74 20 6c 6f 6e 67 20 6f |en, cons|t long o|
|000005a0| 66 66 73 65 74 2c 20 63 | 6f 6e 73 74 20 6c 6f 6e |ffset, c|onst lon|
|000005b0| 67 20 63 6f 75 6e 74 2c | 0d 09 09 09 63 6f 6e 73 |g count,|....cons|
|000005c0| 74 20 76 6f 69 64 20 2a | 6e 65 77 64 61 74 61 2c |t void *|newdata,|
|000005d0| 20 63 6f 6e 73 74 20 6c | 6f 6e 67 20 6e 65 77 6c | const l|ong newl|
|000005e0| 65 6e 29 3b 0d 0d 2f 2a | 20 48 61 6e 64 6c 65 45 |en);../*| HandleE|
|000005f0| 64 69 74 20 72 65 70 6c | 61 63 65 73 20 63 6f 75 |dit repl|aces cou|
|00000600| 6e 74 20 62 79 74 65 73 | 20 61 74 20 74 68 65 20 |nt bytes| at the |
|00000610| 67 69 76 65 6e 20 6f 66 | 66 73 65 74 20 69 6e 20 |given of|fset in |
|00000620| 74 68 65 20 68 61 6e 64 | 6c 65 20 77 69 74 68 0d |the hand|le with.|
|00000630| 09 6e 65 77 63 6f 75 6e | 74 20 62 79 74 65 73 20 |.newcoun|t bytes |
|00000640| 66 72 6f 6d 20 74 68 65 | 20 62 75 66 66 65 72 20 |from the| buffer |
|00000650| 70 6f 69 6e 74 65 64 20 | 74 6f 20 62 79 20 6e 65 |pointed |to by ne|
|00000660| 77 64 61 74 61 2e 20 20 | 69 66 20 6e 65 77 63 6f |wdata. |if newco|
|00000670| 75 6e 74 20 69 73 20 7a | 65 72 6f 2c 0d 09 6e 65 |unt is z|ero,..ne|
|00000680| 77 64 61 74 61 20 69 73 | 20 69 67 6e 6f 72 65 64 |wdata is| ignored|
|00000690| 20 61 6e 64 20 63 61 6e | 20 62 65 20 4e 55 4c 4c | and can| be NULL|
|000006a0| 2e 20 20 54 68 65 20 68 | 61 6e 64 6c 65 20 6d 61 |. The h|andle ma|
|000006b0| 79 20 62 65 20 72 65 73 | 69 7a 65 64 20 62 79 20 |y be res|ized by |
|000006c0| 74 68 69 73 20 63 61 6c | 6c 2c 0d 09 61 6e 64 20 |this cal|l,..and |
|000006d0| 73 6f 6d 65 20 70 61 72 | 61 6d 65 74 65 72 20 63 |some par|ameter c|
|000006e0| 68 65 63 6b 69 6e 67 20 | 69 73 20 64 6f 6e 65 2e |hecking |is done.|
|000006f0| 20 2a 2f 0d 4f 53 45 72 | 72 20 48 61 6e 64 6c 65 | */.OSEr|r Handle|
|00000700| 45 64 69 74 28 48 61 6e | 64 6c 65 20 68 2c 20 63 |Edit(Han|dle h, c|
|00000710| 6f 6e 73 74 20 6c 6f 6e | 67 20 6f 66 66 73 65 74 |onst lon|g offset|
|00000720| 2c 20 63 6f 6e 73 74 20 | 6c 6f 6e 67 20 63 6f 75 |, const |long cou|
|00000730| 6e 74 2c 0d 09 09 09 63 | 6f 6e 73 74 20 63 68 61 |nt,....c|onst cha|
|00000740| 72 20 2a 6e 65 77 64 61 | 74 61 2c 20 63 6f 6e 73 |r *newda|ta, cons|
|00000750| 74 20 6c 6f 6e 67 20 6e | 65 77 63 6f 75 6e 74 29 |t long n|ewcount)|
|00000760| 3b 0d 0d 2f 2a 20 73 74 | 72 65 64 69 74 20 72 65 |;../* st|redit re|
|00000770| 70 6c 61 63 65 73 20 6f | 6c 64 6c 65 6e 20 63 68 |places o|ldlen ch|
|00000780| 61 72 61 63 74 65 72 73 | 20 61 74 20 6f 66 66 73 |aracters| at offs|
|00000790| 65 74 20 69 6e 20 64 73 | 74 20 77 69 74 68 20 74 |et in ds|t with t|
|000007a0| 68 65 20 73 74 72 69 6e | 67 0d 09 64 65 73 63 72 |he strin|g..descr|
|000007b0| 69 62 65 64 20 62 79 20 | 28 6e 65 77 64 61 74 61 |ibed by |(newdata|
|000007c0| 2c 20 6e 65 77 6c 65 6e | 29 2e 20 20 49 66 20 6e |, newlen|). If n|
|000007d0| 65 77 6c 65 6e 20 69 73 | 20 7a 65 72 6f 2c 20 74 |ewlen is| zero, t|
|000007e0| 68 65 20 62 79 74 65 73 | 20 61 72 65 0d 09 73 69 |he bytes| are..si|
|000007f0| 6d 70 6c 79 20 64 65 6c | 65 74 65 64 2e 20 20 73 |mply del|eted. s|
|00000800| 74 72 65 64 69 74 20 72 | 65 74 75 72 6e 73 20 64 |tredit r|eturns d|
|00000810| 73 74 2e 20 2a 2f 0d 63 | 68 61 72 2a 20 73 74 72 |st. */.c|har* str|
|00000820| 65 64 69 74 28 63 68 61 | 72 2a 20 64 73 74 2c 20 |edit(cha|r* dst, |
|00000830| 63 6f 6e 73 74 20 6c 6f | 6e 67 20 6f 66 66 73 65 |const lo|ng offse|
|00000840| 74 2c 20 63 6f 6e 73 74 | 20 6c 6f 6e 67 20 6f 6c |t, const| long ol|
|00000850| 64 6c 65 6e 2c 0d 09 09 | 09 63 6f 6e 73 74 20 63 |dlen,...|.const c|
|00000860| 68 61 72 20 2a 6e 65 77 | 64 61 74 61 2c 20 63 6f |har *new|data, co|
|00000870| 6e 73 74 20 6c 6f 6e 67 | 20 6e 65 77 6c 65 6e 29 |nst long| newlen)|
|00000880| 3b 0d 0d 2f 2a 20 73 74 | 72 72 65 70 6c 61 63 65 |;../* st|rreplace|
|00000890| 20 72 65 70 6c 61 63 65 | 73 20 74 68 65 20 66 69 | replace|s the fi|
|000008a0| 72 73 74 20 69 6e 73 74 | 61 6e 63 65 20 6f 66 20 |rst inst|ance of |
|000008b0| 70 61 74 74 65 72 6e 20 | 69 6e 20 74 68 65 20 73 |pattern |in the s|
|000008c0| 74 72 69 6e 67 20 64 73 | 74 20 77 69 74 68 20 6e |tring ds|t with n|
|000008d0| 65 77 70 61 74 74 65 72 | 6e 0d 09 61 6e 64 20 72 |ewpatter|n..and r|
|000008e0| 65 74 75 72 6e 73 20 64 | 73 74 2e 20 20 69 66 20 |eturns d|st. if |
|000008f0| 64 73 74 20 64 6f 65 73 | 20 6e 6f 74 20 63 6f 6e |dst does| not con|
|00000900| 74 61 69 6e 20 74 68 65 | 20 70 61 74 74 65 72 6e |tain the| pattern|
|00000910| 2c 20 4e 55 4c 4c 20 69 | 73 20 72 65 74 75 72 6e |, NULL i|s return|
|00000920| 65 64 2e 20 2a 2f 0d 63 | 68 61 72 2a 20 73 74 72 |ed. */.c|har* str|
|00000930| 72 65 70 6c 61 63 65 28 | 63 68 61 72 2a 20 64 73 |replace(|char* ds|
|00000940| 74 2c 20 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 70 |t, const| char *p|
|00000950| 61 74 74 65 72 6e 2c 20 | 63 6f 6e 73 74 20 63 68 |attern, |const ch|
|00000960| 61 72 20 2a 6e 65 77 70 | 61 74 74 65 72 6e 29 3b |ar *newp|attern);|
|00000970| 0d 0d 2f 2a 20 73 74 72 | 69 6e 73 65 72 74 20 69 |../* str|insert i|
|00000980| 6e 73 65 72 74 73 20 74 | 68 65 20 73 74 72 69 6e |nserts t|he strin|
|00000990| 67 20 73 72 63 20 69 6e | 74 6f 20 74 68 65 20 73 |g src in|to the s|
|000009a0| 74 72 69 6e 67 20 64 73 | 74 20 61 74 20 74 68 65 |tring ds|t at the|
|000009b0| 20 67 69 76 65 6e 20 6f | 66 66 73 65 74 2e 20 20 | given o|ffset. |
|000009c0| 64 73 74 0d 09 69 73 20 | 72 65 73 69 7a 65 64 20 |dst..is |resized |
|000009d0| 61 70 70 72 6f 70 72 69 | 61 74 65 6c 79 2e 20 20 |appropri|ately. |
|000009e0| 59 6f 75 20 73 68 6f 75 | 6c 64 20 65 6e 73 75 72 |You shou|ld ensur|
|000009f0| 65 20 74 68 65 20 62 75 | 66 66 65 72 20 70 6f 69 |e the bu|ffer poi|
|00000a00| 6e 74 65 64 20 74 6f 20 | 62 79 20 64 73 74 0d 09 |nted to |by dst..|
|00000a10| 69 73 20 6c 61 72 67 65 | 20 65 6e 6f 75 67 68 20 |is large| enough |
|00000a20| 74 6f 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 72 |to conta|in the r|
|00000a30| 65 73 75 6c 74 2e 20 20 | 73 74 72 69 6e 73 65 72 |esult. |strinser|
|00000a40| 74 20 72 65 74 75 72 6e | 73 20 64 73 74 2e 20 2a |t return|s dst. *|
|00000a50| 2f 0d 63 68 61 72 2a 20 | 73 74 72 69 6e 73 65 72 |/.char* |strinser|
|00000a60| 74 28 63 68 61 72 2a 20 | 64 73 74 2c 20 63 6f 6e |t(char* |dst, con|
|00000a70| 73 74 20 6c 6f 6e 67 20 | 6f 66 66 73 65 74 2c 20 |st long |offset, |
|00000a80| 63 68 61 72 2a 20 73 72 | 63 29 3b 0d 0d 2f 2a 20 |char* sr|c);../* |
|00000a90| 73 74 72 64 65 6c 65 74 | 65 20 64 65 6c 65 74 65 |strdelet|e delete|
|00000aa0| 73 20 63 6f 75 6e 74 20 | 63 68 61 72 61 63 74 65 |s count |characte|
|00000ab0| 72 73 20 73 74 61 72 74 | 69 6e 67 20 61 74 20 6f |rs start|ing at o|
|00000ac0| 66 66 73 65 74 20 66 72 | 6f 6d 20 74 68 65 20 73 |ffset fr|om the s|
|00000ad0| 74 72 69 6e 67 20 64 73 | 74 0d 09 72 65 73 69 7a |tring ds|t..resiz|
|00000ae0| 69 6e 67 20 64 73 74 20 | 61 70 70 72 6f 70 72 69 |ing dst |appropri|
|00000af0| 61 74 65 6c 79 2e 20 20 | 73 74 72 64 65 6c 65 74 |ately. |strdelet|
|00000b00| 65 20 72 65 74 75 72 6e | 73 20 64 73 74 2e 20 2a |e return|s dst. *|
|00000b10| 2f 0d 63 68 61 72 2a 20 | 73 74 72 64 65 6c 65 74 |/.char* |strdelet|
|00000b20| 65 28 63 68 61 72 2a 20 | 64 73 74 2c 20 63 6f 6e |e(char* |dst, con|
|00000b30| 73 74 20 6c 6f 6e 67 20 | 6f 66 66 73 65 74 2c 20 |st long |offset, |
|00000b40| 63 6f 6e 73 74 20 6c 6f | 6e 67 20 63 6f 75 6e 74 |const lo|ng count|
|00000b50| 29 3b 0d 0d 2f 2a 20 70 | 61 73 63 61 6c 20 73 74 |);../* p|ascal st|
|00000b60| 72 69 6e 67 20 65 71 75 | 69 76 61 6c 65 6e 74 73 |ring equ|ivalents|
|00000b70| 20 74 6f 20 74 68 65 20 | 61 62 6f 76 65 2c 20 74 | to the |above, t|
|00000b80| 68 65 20 64 69 66 66 65 | 72 65 6e 63 65 20 62 65 |he diffe|rence be|
|00000b90| 69 6e 67 0d 09 74 68 61 | 74 20 63 68 61 72 61 63 |ing..tha|t charac|
|00000ba0| 74 65 72 73 20 69 6e 20 | 70 61 73 63 61 6c 20 73 |ters in |pascal s|
|00000bb0| 74 72 69 6e 67 73 20 61 | 72 65 20 69 6e 64 65 78 |trings a|re index|
|00000bc0| 65 64 20 31 2c 20 32 2c | 20 2e 2e 2e 2c 20 6e 2e |ed 1, 2,| ..., n.|
|00000bd0| 20 2a 2f 0d 53 74 72 69 | 6e 67 50 74 72 20 50 4c | */.Stri|ngPtr PL|
|00000be0| 73 74 72 65 64 69 74 28 | 53 74 72 69 6e 67 50 74 |stredit(|StringPt|
|00000bf0| 72 20 64 73 74 2c 20 73 | 68 6f 72 74 20 69 6e 64 |r dst, s|hort ind|
|00000c00| 65 78 2c 20 73 68 6f 72 | 74 20 6f 6c 64 6c 65 6e |ex, shor|t oldlen|
|00000c10| 2c 20 63 6f 6e 73 74 20 | 76 6f 69 64 2a 20 6e 65 |, const |void* ne|
|00000c20| 77 64 61 74 61 2c 20 73 | 68 6f 72 74 20 6e 65 77 |wdata, s|hort new|
|00000c30| 6c 65 6e 29 3b 0d 53 74 | 72 69 6e 67 50 74 72 20 |len);.St|ringPtr |
|00000c40| 50 4c 73 74 72 72 65 70 | 6c 61 63 65 28 53 74 72 |PLstrrep|lace(Str|
|00000c50| 69 6e 67 50 74 72 20 64 | 73 74 2c 20 63 6f 6e 73 |ingPtr d|st, cons|
|00000c60| 74 20 53 74 72 69 6e 67 | 50 74 72 20 70 61 74 74 |t String|Ptr patt|
|00000c70| 65 72 6e 2c 20 63 6f 6e | 73 74 20 53 74 72 69 6e |ern, con|st Strin|
|00000c80| 67 50 74 72 20 6e 65 77 | 70 61 74 74 65 72 6e 29 |gPtr new|pattern)|
|00000c90| 3b 0d 53 74 72 69 6e 67 | 50 74 72 20 50 4c 73 74 |;.String|Ptr PLst|
|00000ca0| 72 69 6e 73 65 72 74 28 | 53 74 72 69 6e 67 50 74 |rinsert(|StringPt|
|00000cb0| 72 20 64 73 74 2c 20 63 | 6f 6e 73 74 20 6c 6f 6e |r dst, c|onst lon|
|00000cc0| 67 20 69 6e 64 65 78 2c | 20 53 74 72 69 6e 67 50 |g index,| StringP|
|00000cd0| 74 72 20 73 72 63 29 3b | 0d 53 74 72 69 6e 67 50 |tr src);|.StringP|
|00000ce0| 74 72 20 50 4c 73 74 72 | 64 65 6c 65 74 65 28 53 |tr PLstr|delete(S|
|00000cf0| 74 72 69 6e 67 50 74 72 | 20 64 73 74 2c 20 63 6f |tringPtr| dst, co|
|00000d00| 6e 73 74 20 73 68 6f 72 | 74 20 69 6e 64 65 78 2c |nst shor|t index,|
|00000d10| 20 63 6f 6e 73 74 20 73 | 68 6f 72 74 20 63 6f 75 | const s|hort cou|
|00000d20| 6e 74 29 3b 0d 0d 23 69 | 66 64 65 66 20 5f 5f 63 |nt);..#i|fdef __c|
|00000d30| 70 6c 75 73 70 6c 75 73 | 0d 7d 3b 0d 23 65 6e 64 |plusplus|.};.#end|
|00000d40| 69 66 0d 0d 23 65 6e 64 | 69 66 0d 0d 00 00 00 00 |if..#end|if......|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000d90| ff f4 4e 5e 20 5f 4f ef | 00 0a 4e d0 4e 56 ff ea |..N^ _O.|..N.NV..|
|00000da0| 48 e7 00 18 26 6e 00 08 | 28 6e 00 0c 20 0c 66 08 |H...&n..|(n.. .f.|
|00000db0| 09 50 6c 75 6e 67 65 72 | 2e 68 02 00 00 00 54 45 |.Plunger|.h....TE|
|00000dc0| 58 54 4d 50 53 20 01 00 | 00 00 00 01 00 00 00 00 |XTMPS ..|........|
|00000dd0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 01 |..TEXTMP|S ......|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 0e 2c b0 1a 1c 4d 00 00 | 0c cc 00 00 01 ac ff ea |.,...M..|........|
|00000e00| a8 74 2f 0c a8 73 2f 0c | 70 04 3f 00 48 6e ff ee |.t/..s/.|p.?.Hn..|
|00000e10| 48 6e ff f0 48 6e ff f4 | a9 8d 48 6e ff f4 a9 28 |Hn..Hn..|..Hn...(|
|00000e20| 2f 2e ff ea a8 73 20 6e | ff fc a0 1b 42 6e 00 10 |/....s n|....Bn..|
|00000e30| 4c ee 18 00 ff e2 4e 5e | 20 5f 50 4f 4e d0 4e 56 |L.....N^| _PON.NV|
|00000e40| 00 00 2f 0c 70 03 ab fc | 20 40 28 50 29 6e 00 0a |../.p...| @(P)n..|
|00000e50| 00 40 70 00 29 40 00 44 | 19 6e 00 08 00 48 42 2c |.@p.)@.D|.n...HB,|
|00000e60| 00 49 42 6e 00 0e 28 6e | ff fc 4e 5e 20 5f 5c 4f |.IBn..(n|..N^ _\O|
|00000e70| 4e d0 4e 56 00 00 2f 0c | 70 03 ab fc 20 40 28 50 |N.NV../.|p... @(P|
|00000e80| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 6f 66 66 |...H..Ge|neva.off|
|00000e90| 03 df 84 20 69 6e 20 64 | 73 74 20 77 69 74 68 20 |... in d|st with |
|00000ea0| 74 68 65 20 73 74 00 03 | 00 08 00 d1 00 ef 03 04 |the st..|........|
|00000eb0| 03 52 00 d1 00 ef 03 04 | 03 52 b0 5f 55 0a 00 00 |.R......|.R._U...|
|00000ec0| 02 a2 00 00 02 a2 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00000ed0| 00 d1 00 ef 03 04 03 52 | 00 d1 00 ef 03 04 03 52 |.......R|.......R|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 03 d6 |.....n..|.n...>..|
|00000f00| 71 38 26 32 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |q8&2....|.>..MPSR|
|00000f10| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 03 f0 ff ff 00 00 00 4c | 03 d7 cb 08 00 00 00 00 |.......L|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+